package com.crack.simpleapiclientsdk.cilent;

import cn.hutool.json.JSONUtil;
import com.crack.simpleapiclientsdk.client.ApiClient;
import com.crack.simpleapiclientsdk.model.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @version 1.0
 * @Description
 * @CreateTime 2023/3/20 0:44
 */
@SpringBootTest
public class test {

    @Autowired
    ApiClient apiClient;

    @Test
    void test(){
        User user = new User("crack");
        String s = JSONUtil.toJsonStr(user);
        String json = "{\"name\":\"string\"}";
        apiClient.getUserNameByPost(user,null);

    }
}
